<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/11/8
 * Time: 3:22 PM
 */

namespace App\BO\OrderStatus;

use App\Entity\OrderEntity;

/**
 * 决定订单状态
 * 当修改了状态之后，需要进行单元测试
 * vendor/bin/phpunit tests/Unit/BO/JudgeStateTest.php
 */
class JudgeState implements IJudgeOrderState
{
    use OrderJudgeStateTrait;

    /**
     * @var OrderEntity
     */
    private $order;

    public function __construct(OrderEntity $order)
    {
        $this->order = $order;
    }
}
